<form id="distribution_book">
    <div class="col-xs-12 col-md-12 col-lg-12 padding-none lists">
        <div class="col-lg-2 col-md-3 col-xs-5 filed-name text-right">分销宝典<pub>*</pub> :</div>
        <div class="pull-left filed-from padding-none" style="width: 350px;">
            <textarea id="content"><?php echo $data['content']?></textarea>
        </div>
    </div>
    <div class="col-xs-12 col-md-12 col-lg-12 lists text-right">
        <input type="submit" name="dosubmit" value="保存" class="btn btn-success radius-none">
        <input type="reset"  value="重置" class="btn btn-info radius-none">
    </div>
</form>
<script>


    $(function(){

        var ueditor;
        //加载百度编辑器
        Admin.getUeditor('content',function(ue){

            ueditor = ue;

        });

        $('#distribution_book').submit(function(){

            var data = {};

            data['content'] = ueditor.getContent();

            $.post("<?php echo U('Admin/Setting/Index/distributionBook')?>",{'data':data},function(result){

                showMessage(result.msg,result.code,'','',2000);

            })

            return false;

        });

    })

</script>